package cn.itmantzy.pet.service;


import cn.itmantzy.basic.service.IBaseService;
import cn.itmantzy.basic.util.LoginContext;
import cn.itmantzy.pet.domain.Pet;
import cn.itmantzy.user.domain.Logininfo;

import java.util.List;

public interface IPetService extends IBaseService<Pet> {

    /**
     * 上架
     * @param ids
     */
    void onSale(List<Long> ids);

    /**
     * 下架
     * @param ids
     */
    void offSale(List<Long> ids);

    Pet queryByIdDetail(Long id);

    /**
     * 宠物领养
     * @param id
     */
    void adopt(Long id, Logininfo currentLogininfo);
}
